/**
 * Copyright (C), 2015-2018, 成都启迪信息技术有限公司
 * FileName: ApiLoginUtil
 * Author:   sjkyll
 * Date:     2018-08-09 16:12
 * Description:
 * <author>          <time>          <version>          <desc>
 * 作者姓名         修改时间           版本号            描述
 */
package com.cdqidi.smsservice.util;

import com.cdqidi.smsservice.dto.ApiLogin;

/**
 * 〈一句话功能简述〉<br> 
 *
 * @author sjkyll
 * @create 2018-08-09 16:12
 * @since 1.0.0
 */
public class ApiLoginUtil {
    private static final ThreadLocal<ApiLogin> tl = new ThreadLocal<>();

    public static void setThreadLocalApiConfig(ApiLogin apiLogin) {
        tl.set(apiLogin);
    }
    public static ApiLogin getApiLogin() {
        ApiLogin result = tl.get();
        return result;
    }
    public static void removeThreadLocalApiConfig() {
        tl.remove();
    }
}